﻿package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SPlayerTaskUpdate extends Object
    {
        public var taskCode:int;
        public var status:int;
        public var currentSetp:int;
        public var extend:int;
        public var stepRecords:Array;
        public var rewards:Array;

        public function SPlayerTaskUpdate()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.taskCode);
            param1.writeInt(this.status);
            param1.writeInt(this.currentSetp);
            param1.writeInt(this.extend);
            SeqIntHelper.write(param1, this.stepRecords);
            SeqTaskRewardHelper.write(param1, this.rewards);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.taskCode = param1.readInt();
            this.status = param1.readInt();
            this.currentSetp = param1.readInt();
            this.extend = param1.readInt();
            this.stepRecords = SeqIntHelper.read(param1);
            this.rewards = SeqTaskRewardHelper.read(param1);
            return;
        }// end function

    }
}
